package com.zhu.mapper;

import com.zhu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    List<User> queryUserList();

    User getUserById(int id);

    String getRoleByName(String username);

    User getUserByName(String username);

    User getUserByNameAndPassWord(String username,String password);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(int id);
}

